<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script>
	//    唐杰 179000950
	//绘制三角形
	{
		var a = 1;
		while (a <= 5) {
			var b = 1;
			document.write("<center>");
			while (b <= a) {
				document.write("*");
				b++;
			}
			document.write("<br/>");
			a++;
			document.write("</center>");
		}
	}
	document.write("<br>");
	//绘制平行四边形
	for (var i = 1; i <= 5; i++) {
		document.write("<center>");
		for (var j = 1; j <= i - 1; j++) {
			document.write("&nbsp;");
		}
		for (var k = 1; k <= 5; k++) {
			document.write("*");
		}
	}
</script>
